﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Multiprocessing.Core.Units
{
    public interface IProcessingBlock : IDisposable
    {
        Action this[int index] { get; set; }
        int Size { get; }
        void StartAll();
        void WaitAll();
        void StartOne(int index);
        void WaitOne(int index);
     }
}
